cacheDir

suspend fun cacheDir(sourceDir: Path, tool: String, version: String, arch: String? = null): Path

Caches a directory and installs it into the tool cacheDir.

The cache will be keyed on tool, version, and arch.

Parameters

sourceDir

the directory to cache into tools

tool

tool name

version

version of the tool. semver format

arch

architecture of the tool. Optional. Defaults to machine architecture

Sources

js source
Link copied to clipboard